package com.lebang.mapper;

import com.lebang.entity.member.LbbMemberFeedback;
import com.lebang.example.LbbMemberFeedbackExample;
import com.lebang.model.vo.buss.MemberFeedbackVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface LbbMemberFeedbackMapper {
    long countByExample(LbbMemberFeedbackExample example);

    int deleteByExample(LbbMemberFeedbackExample example);

    int deleteByPrimaryKey(Long id);

    int insert(LbbMemberFeedback record);

    int insertSelective(LbbMemberFeedback record);

    List<LbbMemberFeedback> selectByExample(LbbMemberFeedbackExample example);

    LbbMemberFeedback selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") LbbMemberFeedback record, @Param("example") LbbMemberFeedbackExample example);

    int updateByExample(@Param("record") LbbMemberFeedback record, @Param("example") LbbMemberFeedbackExample example);

    int updateByPrimaryKeySelective(LbbMemberFeedback record);

    int updateByPrimaryKey(LbbMemberFeedback record);

    LbbMemberFeedback getByFeedBackId(String feedBackId);

    Integer total(@Param("vo") MemberFeedbackVo vo);

    List<Map> pagging(@Param("vo") MemberFeedbackVo vo);


    int count(@Param("createTime") String createTime,@Param("userid") String userid);

    List<Map<String, Object>> hasCompleted(@Param("userid") String userid);
}